﻿using System;
using System.Diagnostics;
using System.IO;

namespace common
{
    public class com
    {
        public const string strGreen = "..\\..\\@@green";

        public static void openFile(string strSoft, string file)
        {
            try
            {
                if (!File.Exists(file)) { return; }
                //if (Path.GetExtension(file) == ".htm") {
                //    //file = System.Web.HttpUtility.UrlEncode(file);
                //    Process.Start(strSoft, file);
                //    return;
                //}
                Process.Start(strSoft, Path.GetFullPath(file));
            }
            catch (Exception Exc)
            {
            }
        }

        //public static string get_appname()
        //{
        //    ParseXml px = new ParseXml("Xml/Config.xml");
        //    return px.parse("AppName");
        //}
    }
}